package cj.web.activity.domain;
/*
 *  
 *  
*/
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import java.io.Serializable;

/**
 * 奖品概率
 */
public class PrizeGift implements Serializable {

    protected String id;
	protected String activeId;
	protected String name;
	protected String count;
	protected String probability;
	protected String remark;
	protected Integer orderNo;
	protected String dayCount;


	/**
	 * Default Empty Constructor for class PrizeGift
	 */
	public PrizeGift () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class PrizeGift
	 */
	public PrizeGift (
		 String in_id
        ) {
		this.setId(in_id);
    }

    

	/**
	 * 主键	 * @return String
     * 
	 */
	public String getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(String aValue) {
		this.id = aValue;
	}	

	/**
	 * 活动ID	 * @return String
	 * 
	 */
	public String getActiveId() {
		return this.activeId;
	}
	
	/**
	 * Set the activeId
	 */	
	public void setActiveId(String aValue) {
		this.activeId = aValue;
	}	

	/**
	 * 奖品名称	 * @return String
	 * 
	 */
	public String getName() {
		return this.name;
	}
	
	/**
	 * Set the name
	 */	
	public void setName(String aValue) {
		this.name = aValue;
	}	

	/**
	 * 当日发放数量	 * @return String
	 * 
	 */
	public String getCount() {
		return this.count;
	}
	
	/**
	 * Set the count
	 */	
	public void setCount(String aValue) {
		this.count = aValue;
	}	

	/**
	 * 奖品概率	 * @return String
	 * 
	 */
	public String getProbability() {
		return this.probability;
	}
	
	/**
	 * Set the probability
	 */	
	public void setProbability(String aValue) {
		this.probability = aValue;
	}	

	/**
	 * 备注	 * @return String
	 * 
	 */
	public String getRemark() {
		return this.remark;
	}
	
	/**
	 * Set the remark
	 */	
	public void setRemark(String aValue) {
		this.remark = aValue;
	}	

	/**
	 * 排序	 * @return Integer
	 * 
	 */
	public Integer getOrderNo() {
		return this.orderNo;
	}
	
	/**
	 * Set the orderNo
	 */	
	public void setOrderNo(Integer aValue) {
		this.orderNo = aValue;
	}	

	/**
	 * 当日总奖品数	 * @return String
	 * 
	 */
	public String getDayCount() {
		return this.dayCount;
	}
	
	/**
	 * Set the dayCount
	 */	
	public void setDayCount(String aValue) {
		this.dayCount = aValue;
	}	

	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof PrizeGift)) {
			return false;
		}
		PrizeGift rhs = (PrizeGift) object;
		return new EqualsBuilder()
				.append(this.id, rhs.id)
				.append(this.activeId, rhs.activeId)
				.append(this.name, rhs.name)
				.append(this.count, rhs.count)
				.append(this.probability, rhs.probability)
				.append(this.remark, rhs.remark)
				.append(this.orderNo, rhs.orderNo)
				.append(this.dayCount, rhs.dayCount)
				.isEquals();
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.id) 
				.append(this.activeId) 
				.append(this.name) 
				.append(this.count) 
				.append(this.probability) 
				.append(this.remark) 
				.append(this.orderNo) 
				.append(this.dayCount) 
				.toHashCode();
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", this.id) 
				.append("activeId", this.activeId) 
				.append("name", this.name) 
				.append("count", this.count) 
				.append("probability", this.probability) 
				.append("remark", this.remark) 
				.append("orderNo", this.orderNo) 
				.append("dayCount", this.dayCount) 
				.toString();
	}



}
